home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2007 December / PCWKCD1207B.iso / Blogowanie poza sfera / Flock 0.9.1.3 stable / flock-0.9.1.3.en-US.win32.exe / flock / res / detect / wordpress.xml < prev    next >
Extensible Markup Language  |  2007-10-12  |  3KB  |  106 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <service name="wordpress"
  3.          version="$Id: wordpress.xml 14069 2007-08-09 19:15:43Z chris $"
  4.          xmlns="http://www.flock.com/web-detective#">
  5.  
  6.   <detect type="signup">
  7.     <url domain="wordpress.com" />
  8.     <form>
  9.       <field name="user_name" extractas="username" />
  10.       <field name="pass2" type="password" extractas="password" />
  11.     </form>
  12.   </detect>
  13.  
  14.   <detect type="login">
  15.     <url domain="wordpress.com"/>
  16.     <form>
  17.       <field fieldid="user_login" extractas="username"/>
  18.       <field fieldid="user_pass" type="password" extractas="password"/>
  19.     </form>
  20.   </detect>
  21.  
  22.   <detect type="loggedin">
  23.     <url domain="wordpress.com"/>
  24.     <xpath><![CDATA[//div[@id="wpcombar"]/div/ul/li/ul/li/strong/a/text()[contains(.,"Log Out")]]]></xpath>
  25.   </detect>
  26.  
  27.   <detect type="loggedin">
  28.     <url domain="wordpress.com"/>
  29.     <xpath><![CDATA[//div[@id="wpcombar"]/div/ul/li/ul/li/a/text()[contains(.,"Log Out")]]]></xpath>
  30.   </detect>
  31.  
  32.   <detect type="loggedin">
  33.     <url domain="wordpress.com">
  34.       <path contains="signup" />
  35.     </url>
  36.     <regexp><![CDATA[/Your account is now active!/]]></regexp>
  37.   </detect>
  38.  
  39.   <detect type="blogURL">
  40.     <url domain="wordpress.com"/>
  41.     <xpath name="blogURL" extract="attribute:href">
  42.       <![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/a]]>
  43.     </xpath>
  44.   </detect>
  45.  
  46.   <detect type="accountinfo">
  47.     <conditions>
  48.       <url domain="wordpress.com"/>
  49.       <xpath name="accountid">
  50.         <![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/a/text()]]>
  51.       </xpath>
  52.     </conditions>
  53.     <results>
  54.       <xpath name="accountid">
  55.         <![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/a/text()]]>
  56.       </xpath>
  57.       <xpath name="avatarURL" extract="attribute:src">
  58.         <![CDATA[//div[@id="wrapper"]//div[@id="block_2"]//div[@id="welcomeback"]//div[@class="head"]/img]]>
  59.       </xpath>
  60.     </results>
  61.   </detect>
  62.  
  63.   <detect type="accountinfo">
  64.     <conditions>
  65.       <url domain="wordpress.com"/>
  66.       <xpath name="accountid">
  67.         <![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/strong/a/text()]]>
  68.       </xpath>
  69.     </conditions>
  70.     <results>
  71.       <xpath name="accountid">
  72.         <![CDATA[/html/body/div[@id="wrapper"]/div[@id="block_2"]/div[@id="welcomeback"]/ul/li/strong/a/text()]]>
  73.       </xpath>
  74.       <xpath name="avatarURL" extract="attribute:src">
  75.         <![CDATA[//div[@id="wrapper"]//div[@id="block_2"]//div[@id="welcomeback"]//div[@class="head"]/img]]>
  76.       </xpath>
  77.     </results>
  78.   </detect>
  79.  
  80.   <detect type="accountinfo">
  81.     <url domain="wordpress.com">
  82.       <path contains="signup" />
  83.     </url>
  84.     <xpath name="accountid">
  85.       <![CDATA[//p[contains(text(),"You are now logged in as")]/strong/text()]]>
  86.     </xpath>
  87.   </detect>
  88.  
  89.   <detect type="changepassword">
  90.     <url domain="wordpress.com">
  91.       <path contains="/wp-admin/profile.php"/>
  92.     </url>
  93.     <document>
  94.       <xpath name="username" extract="value">
  95.         <![CDATA[//input[@name="user_login"]]]>
  96.       </xpath>
  97.     </document>
  98.     <form>
  99.       <xpath name="password" extract="value">
  100.         <![CDATA[//input[@type="password"][@name="pass2"]]]>
  101.       </xpath>
  102.     </form>
  103.   </detect>  
  104.  
  105. </service>
  106.